#pragma once
#include "Object.h"
#include "VideoDriver.h"
class Rectangles : public Object
{
private:
	int m_RectWidth;
	int m_RectHeight;
public:
	Rectangles();
	Rectangles(float posX, float posY, int m_RectWidth, int m_RectHeight);
	~Rectangles();
	void Render();
	void Update(float frameTime);
	int GetWidth();
	int GetHeight();
	void SetWidth(int m_RectWidth);
	void SetHeigth(int m_RectHeight);
	//Task 2
	bool InRect(int posX, int posY);

	//Task 3
	int CheckCollisionWithEdge();
	bool HasCollisionWithObject(Object* object);
	bool HasCollisionWithRect(Rectangles* rect);

};